#ifndef PLAYERPLANE_H
#define PLAYERPLANE_H

#include "config.h"
#include "bullet.h"

class PlayerPlane : public QObject,public QGraphicsPixmapItem
{
    Q_OBJECT
public:
    explicit PlayerPlane(QObject *parent = nullptr);

    int speed;//移动速度

    void shoot(QGraphicsScene *scence);//发射子弹

    void player_plane_move();
    QPixmap plane_picture;
    int up;
    int down;
    int left;
    int right;

    void picture_choose(int path);
    void setup(int a);
    void setdown(int a);
    void setleft(int a);
    void setright(int a);

    int blood;
signals:
public slots:

};

#endif // PLAYERPLANE_H
